package com.qingke.action;

import com.opensymphony.xwork2.ActionSupport;
import com.qingke.pojo.Message;

public class MessageAction extends ActionSupport {
	private Message message;
	
	public MessageAction(){
		
	}
	
	public Message getMessage() {
		return message;
	}
	public void setMessage(Message message) {
		this.message = message;
	}
	
	@Override
	public String execute() throws Exception {
		message=new Message();
		message.setMessage("Hello Struts2");
		message.setName("myName");
		return SUCCESS;
	}
}
